/*
 * color.h
 *
 *  Created on: Apr 2, 2012
 *      Author: Tri_D
 */

#ifndef COLOR_H_
#define COLOR_H_

#include "main header.h"

#define		PERIOD_COUNT_DUTY_CYCLE			1245
#define		MAX_COLOR_VAL					255

#define		RED_REGISTER_CTRLER				TPM1C1V
#define		GREEN_REGISTER_CTRLER			TPM2C0V
#define		BLUE_REGISTER_CTRLER			TPM2C1V

#define 	RED_CONTROL_PIN					PTCD_PTCD3
#define		GREEN_CONTROL_PIN				PTCD_PTCD4
#define		BLUE_CONTROL_PIN				PTCD_PTCD5

void Turn_Off_Red(void);
void Turn_Off_Blue(void);
void Turn_Off_Green(void);
void Turn_On_Red(void);
void Turn_On_Blue(void);
void Turn_On_Green(void);
void process_red(uint8_t red);
void process_blue(uint8_t blue);
void process_green(uint8_t green);
void process_color(uint8_t red, uint8_t green, uint8_t blue);

#endif /* COLOR_H_ */
